<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page import="com.beans.photo.*"%>
<%@ page import="com.business.photo.*" %>
<% String  title="增加图片"; %>




<%@include file="header.jsp"%>
<form action="addphoto" method="post" enctype="multipart/form-data" name="addphotoform"  id="addphotoform">
  <strong>您将添加图片到服务器上：</strong><br />
  <p >图片名：
    <label>
    <input name="photoname" type="text" id="photoname" />
    </label>
  </p>
  <p> 备注：</p>
  <label>
  <textarea name="photomemo" cols="40" rows="4" id="photomemo"></textarea>
  </label>
  <p >所在相册：
    <label>
	<select name="phototypeid" >
	<%	
	PhotoTypeBus ptl=new PhotoTypeBus();
	List typeList=ptl.getAllTypes(username);
	for(int i=0;i<typeList.size();i++) {
	PhotoType pt=(PhotoType)typeList.get(i);
	%>
	<option value="<%=pt.getPhototypeId()%>"><%=pt.getPhototypeName()%></option>
	<%
	}
	%>
	</select>&nbsp;<a href="user/addphototype.jsp">增加相册</a>
	</label>
  </p>
  <p>是否显示
    <label>
    <input name="isshow" type="checkbox" id="isshow" value="1" checked="checked" />
    </label>
       <input name="username" type="hidden" id="username" value="<%=username%>" />
  </p>
   <p>
    <label>请选择上传的图片文件：
    <input type="file" name="file" />
    </label>
    <p>
   <label>
		<br />
 &nbsp; <input type="image" src="images/submit.gif" />
      </label>
</p>
  <p>
    <label></label>
</p>
</form>
<%@include file="footer.jsp"%>
</body>

</html>
